var config = require('../../../../package.json')
var serviceType = config.stype
var link = {
  test: {
    base_url: 'http://127.0.0.1:8181/api',
    wss_url: 'ws://127.0.0.1:8181/ws',
    web_url: 'https://wechat.shangning.site'
  },
  ae: {
    base_url: 'https://node8.shangning.site/api',
    wss_url: 'wss://node8.shangning.site/ws',
    web_url: 'https://ae.shangning.org.cn'
  },
  hc: {
    base_url: 'https://node6.shangning.site/api',
    wss_url: 'wss://node6.shangning.site/ws',
    web_url: 'https://hc.shangning.org.cn'
  },
  wechat: {
    base_url: 'https://node3.shangning.site/api',
    wss_url: 'wss://node3.shangning.site/ws',
    web_url: 'https://wechat.shangning.site'
  },
  hi: {
    base_url: 'https://hinode.shangning.site/api',
    wss_url: 'wss://hinode.shangning.site/ws',
    web_url: 'https://hi.shangning.org.cn'
  },
  s: {
    base_url: 'https://snode.shangning.site/api',
    wss_url: 'wss://snode.shangning.site/ws',
    web_url: 'https://s.shangning.org.cn'
  },
  nan: {
    base_url: 'https://snode.shangning.site/api',
    wss_url: 'wss://snode.shangning.site/ws',
    web_url: 'https://nan.shangning.org.cn'
  }
}
var state = {
  type: 1002,
  serviceType: serviceType
}
state = Object.assign(state, link[serviceType || 'wechat'])
export default {
  state
}
